<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-found-edit" th:object="${found}">
            <input id="foundId" name="foundId" th:field="*{foundId}"  type="hidden">
			<!-- <div class="form-group">	
				<label class="col-sm-3 control-label">用户编号：</label>
				<div class="col-sm-8">
					<input id="userId" name="userId" th:field="*{userId}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">发现地址：</label>
				<div class="col-sm-8">
					<input id="foundAddress" name="foundAddress" th:field="*{foundAddress}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">宠物品种：</label>
				<div class="col-sm-8">
					<input id="petType" name="petType" th:field="*{petType}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">信息详情：</label>
				<div class="col-sm-8">
					<input id="foundDetail" name="foundDetail" th:field="*{foundDetail}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">发布时间：</label>
				<div class="col-sm-8">
					<input id="createDate" name="createDate" th:field="*{createDate}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">宠物图片：</label>
				<div class="col-sm-8">
					<input id="foundUrl" name="foundUrl" th:field="*{foundUrl}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">宠物颜色：</label>
				<div class="col-sm-8">
					<input id="petColor" name="petColor" th:field="*{petColor}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">显示状态：</label>
				<div class="col-sm-8">
					<input id="isShow" name="isShow" th:field="*{isShow}" class="form-control" type="text">
				</div>
			</div> -->
			<div class="form-group">	
				<label class="col-sm-3 control-label">招领状态：</label>
				<div class="col-sm-8">
				  <select  name="foundState" id="foundState" class="form-control" th:field="*{foundState}" th:value="*{foundState}" >
                                <option th:selected="*{foundState=='0'}" value="0">未认领</option>
                                <option  th:selected="*{foundState=='1'}" value="1">已认领</option>     
                  </select>
                  </div>
			</div>
			<!-- <div class="form-group">	
				<label class="col-sm-3 control-label">招领类型：</label>
				<div class="col-sm-8">
					<input id="foundType" name="foundType" th:field="*{foundType}" class="form-control" type="text">
				</div>
			</div> -->
			<div class="form-group">	
			   
				<label class="col-sm-3 control-label">审核状态：</label>
				<div class="col-sm-8">
				 <select  name="checkState" id="checkState" class="form-control" th:field="*{checkState}" th:value="*{checkState}" >
                                <option th:selected="*{checkState=='0'}" value="0">未审核</option>
                                <option th:selected="*{checkState=='1'}" value="1">已审核</option>    
                                <option th:selected="*{checkState=='2'}" value="2">审核不通过</option>  
                  </select>
                  </div>
			</div>
			<!-- <div class="form-group">	
				<label class="col-sm-3 control-label">审核时间：</label>
				<div class="col-sm-8">
					<input id="checkDate" name="checkDate" th:field="*{checkDate}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">审核管理员：</label>
				<div class="col-sm-8">
					<input id="checkAdmin" name="checkAdmin" th:field="*{checkAdmin}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">删除标记：</label>
				<div class="col-sm-8">
					<input id="delFlag" name="delFlag" th:field="*{delFlag}" class="form-control" type="text">
				</div>
			</div> -->
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "gxgw_modules/found";
		$("#form-found-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-found-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
